package com.videoaggre.zcl.api

import retrofit2.http.*

interface ScalarsApiService {

    //-------------------车桌面------------------------//
    @GET("/{page}")
    suspend fun recommend(@Path("page") page: String): String?

    @GET("/{classify}/{page}")
    suspend fun classify(@Path("classify") classify: String, @Path("page") page: String): String?

    //-------------------美桌------------------------//
    @GET("/mobile_{classify}_0_{size}_{page}.html")
    suspend fun meizuoMobile(@Path("classify") classify: String = "0", @Path("size") size: String = "0", @Path("page") page: Int = 1): String?

    @GET("/mobile_detail_{id}_{page}.html")
    suspend fun meizuoMobileDetail(@Path("id") id: String, @Path("page") page: Int = 1): String?

    //-------------------奇漫屋------------------------//
    @GET("/")
    suspend fun qimanHome(): String?

    @GET("/{id}/")
    suspend fun qimanDetail(@Path("id") id: String): String?

    @GET("/spotlight/")
    suspend fun spotlight(@Query("keyword") keyword: String): String?

    @POST("/bookchapter/")
    @FormUrlEncoded
    suspend fun bookchapter(@Field("id") id: String, @Field("id2") id2: String = "1"): String?
}